/**
 * @author 		Yuri Visser
 * @created 	25/AUG/2010
 * @UPDATED		 
 * @comments	Good'ol facade ;)
 * @TODO
 **/

package com.theredspace.attask.air {
	
	import com.theredspace.attask.air.model.WebserviceProxy;
	
	import org.puremvc.as3.interfaces.IFacade;
	import org.puremvc.as3.patterns.facade.Facade;
	
	public class ApplicationFacade extends Facade implements IFacade {
		
		//>>> list notification name constants >>>
		/**-------------------------------------------------------------------------------------------------------------------------------------**/
		
	
		/**-------------------------------------------------------------------------------------------------------------------------------------**/
		//<<< list notification name constants <<<
		
		public static function getInstance():ApplicationFacade {
			if ( instance == null ) instance = new ApplicationFacade();
			return instance as ApplicationFacade;
		}
		
		override protected function initializeController():void {
			super.initializeController();
			
			//regsiter commands here
			//registerCommand(COM_APP_STARTUP, AppStartupCommand);
			
			//register proxies/model here
			registerProxy(new WebserviceProxy());
		}
		
		public function startup(app:Main):void {
			
		}
	}
}